Skip to main content

Channels List

AutomatR.Slack.Activities.ChannelsList

The "Channels List" activity in AutomatR is part of the Slack Channel activities package, providing functionality to retrieve the list of channels associated with a Slack user's account. This activity enables automation workflows to obtain information about available channels, supporting enhanced collaboration and communication automation.

Properties

NameDescription
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variable or argument containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Channels List" activity. Integer variables containing the delay duration. Example: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1.
Output
ResultReturns the list of channels as a response. List of ChannelsListResponse objects containing channel information.

ChannelsListResponse Class

PropertyDescription
idThe unique identifier for the channel.
nameThe name of the channel.
is_channelIndicates whether the channel is a general channel.
is_privateIndicates whether the channel is a private channel.
is_memberIndicates whether the user is a member of the channel.
is_imIndicates whether the channel is an IM (instant messaging) channel.
is_mpimIndicates whether the channel is an MPIM (multiparty instant messaging) channel.
is_groupIndicates whether the channel is a group channel.
createdThe timestamp indicating when the channel was created.

How to use:

  1. Drag and drop the "Channels List" activity onto the workflow.
  2. Optionally, configure the delay.
  3. Execute the workflow to retrieve the list of channels.

Example: Consider an example where the "Channels List" activity is used to obtain the list of channels associated with a Slack user's account:

Channels List:
Delay: 2
Result: SlackChannelsList

In this example, the activity retrieves the list of channels, and the result is stored in the variable "SlackChannelsList" for further handling in the workflow.